import axios from "axios";

const request = axios.create({
    baseURL: '',
    timeout: 30000,
})

request.interceptors.request.use(config => {
    return config
}, error => {
    Promise.reject(error)
})

request.interceptors.response.use(response => {
    return Promise.resolve(response.data)
}, error => {
    return Promise.reject(error)
})

export default request